package com.ruoyi.personal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 亲属出国，用于记录亲属出国相关信息对象 t_relatives_abroad
 * 
 * @author qjp
 * @date 2024-09-18
 */
public class RelativesAbroad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 亲属姓名 */
    @Excel(name = "亲属姓名")
    private String relativesName;

    /** 与本人关系 */
    @Excel(name = "与本人关系")
    private String relation;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 所在国家 */
    @Excel(name = "所在国家")
    private String country;

    /** 工作生活城市 */
    @Excel(name = "工作生活城市")
    private String livingCity;

    /** 工作（学习）类型 */
    @Excel(name = "工作", readConverterExp = "学=习")
    private String workStudy;

    /** 职务 */
    @Excel(name = "职务")
    private String duties;

    /** 起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 返回日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "返回日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stopDate;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRelativesName(String relativesName) 
    {
        this.relativesName = relativesName;
    }

    public String getRelativesName() 
    {
        return relativesName;
    }
    public void setRelation(String relation) 
    {
        this.relation = relation;
    }

    public String getRelation() 
    {
        return relation;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setLivingCity(String livingCity) 
    {
        this.livingCity = livingCity;
    }

    public String getLivingCity() 
    {
        return livingCity;
    }
    public void setWorkStudy(String workStudy) 
    {
        this.workStudy = workStudy;
    }

    public String getWorkStudy() 
    {
        return workStudy;
    }
    public void setDuties(String duties) 
    {
        this.duties = duties;
    }

    public String getDuties() 
    {
        return duties;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setStopDate(Date stopDate) 
    {
        this.stopDate = stopDate;
    }

    public Date getStopDate() 
    {
        return stopDate;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("relativesName", getRelativesName())
            .append("relation", getRelation())
            .append("idCard", getIdCard())
            .append("country", getCountry())
            .append("livingCity", getLivingCity())
            .append("workStudy", getWorkStudy())
            .append("duties", getDuties())
            .append("startDate", getStartDate())
            .append("stopDate", getStopDate())
            .append("note", getNote())
            .toString();
    }
}
